//
//  HDNoBankInfoView.swift
//  HuaDaoPeifu
//
//  Created by liangyuanliangyuan on 16/5/27.
//  Copyright © 2016年 paiyipai. All rights reserved.
//

import UIKit

class HDNoBankInfoView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.backgroundColor = UIColor(hex: 0xfcfcfc)
        
        let defaultImage = UIImageView()
        defaultImage.image = UIImage(named: "bank-card")
        self.addSubview(defaultImage)
        
        let defaultAlert = UILabel()
        defaultAlert.text = "暂无您的银行信息"
        defaultAlert.textAlignment = .center
        defaultAlert.font = UIFont.systemFont(ofSize: 14)
        defaultAlert.textColor = UIColor(hex: 0x999999)
        self.addSubview(defaultAlert)
        
        defaultImage.snp.makeConstraints { (make) in
            make.top.equalTo(0)
            make.width.height.equalTo(97)
            make.centerX.equalTo(self.snp.centerX)
        }
        defaultAlert.snp.makeConstraints { (make) in
            make.top.equalTo(defaultImage.snp.bottom).offset(20)
            make.width.equalTo(120)
            make.height.equalTo(14)
            make.centerX.equalTo(self.snp.centerX)
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
